package com.erbao.classloader;

/**
 * @author CaoBaoYin
 * @since 2022/3/22 21:30
 */
public class classL {

    public static void main(String[] args) {
            System.out.println(String.class.getClassLoader());
            System.out.println(sun.net.spi.nameservice.dns.DNSNameService.class.getClassLoader());
            System.out.println(classL.class.getClassLoader());

            System.out.println(sun.net.spi.nameservice.dns.DNSNameService.class.getClassLoader().getClass().getClassLoader());
            System.out.println(classL.class.getClassLoader().getClass().getClassLoader());

            System.out.println(new classL().getClass().getClassLoader());
    }

}
